//
// Created by THE13 on 2024/2/6.
//

#ifndef CHICHIBOOM_UI_SIMLATOR_ANIMATION_SYSFUN_H
#define CHICHIBOOM_UI_SIMLATOR_ANIMATION_SYSFUN_H

typedef struct _SecondOrderDynamics{
    float xp;//previous input
    float y,yd;//state variabls
    float k1,k2,k3;//dynamics constants
}SecondOrderDynamics_t;



void SysInit(SecondOrderDynamics_t *sys,float f,float z,float r,float x0);
float SysUpdate(SecondOrderDynamics_t *sys,float T,float x,float xd);

#endif //CHICHIBOOM_UI_SIMLATOR_ANIMATION_SYSFUN_H
